package com.briup.cart.mapper;

import com.briup.cart.domain.vo.ShopCarGetListVO;

import java.util.List;

/**
* @author qinyc
* @description 针对表【es_shopcar(购物车表)】的数据库操作Mapper
* @createDate 2024-12-24 09:16:52
* @Entity com.briup.store.pojo.Shopcar
*/
public interface ShopcarMapper {

    /**
     * 查询购物车商品数量
     */
    Integer count(Integer userId);

    void insert(Integer userId, Integer goodsId, Integer num);

    List<ShopCarGetListVO> getListByUserId(Integer userId);

    void updateNum(Integer id, Integer num);

    List<Integer> selectById(List<Integer> ids);

    void delete(List<Integer> existIds);

    void deleteByUserIdAndGoodsId(Integer userId, List<Integer> ids);
}




